package com.db.log.parser;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.regex.Pattern;


public class RegExParserConfig {

	private List<Pattern> patterns;
	
	private SortedSet<Field> fields;

	
	public List<Pattern> getPatterns() {
		return patterns;
	}

	public void setPatterns(List<Pattern> patterns) {
		this.patterns = patterns;
	}
	
	public void setPattern(Pattern pattern) {
		this.patterns = new ArrayList<Pattern>();
		patterns.add(pattern);
	}

	
	public Set<Field> getFields() {
		return fields;
	}

	public void setFields(Set<Field> fields) {
		this.fields = new TreeSet<Field>();
		this.fields.addAll(fields);
	}
	
}
